package com.ijiuchuang.jc_localization.bean.lite;

import com.litesuits.orm.db.annotation.Column;
import com.litesuits.orm.db.annotation.PrimaryKey;
import com.litesuits.orm.db.annotation.Table;
import com.litesuits.orm.db.enums.AssignType;

/**
 * Created by Veev on 2016/6/20
 *
 * @link 384506557@qq.com
 */
@Table("Map")
public class Map extends BaseModel {

    // 常量
    public static final int MAP_MODE_ASSETS = 0;

    // 列名
    public static final String COL_ID = "id";
    public static final String COL_NAME = "name";
    public static final String COL_MAP_MODE = "mapMode";
    public static final String COL_MAP_SPINNER = "mapSpinner";
    public static final String COL_MAP_URL = "mapUrl";

    @PrimaryKey(AssignType.AUTO_INCREMENT)
    @Column(COL_ID)
    private long id;

    @Column(COL_NAME)
    private String name;
    @Column(COL_MAP_MODE)
    private int mapMode;
    @Column(COL_MAP_SPINNER)
    private int mapSpinner;
    @Column(COL_MAP_URL)
    private String mapUrl;

    public Map() {
    }

    @Override
    public String toString() {
        return "Map {" +
                "id = '" + id + '\'' +
                "name = '" + name + '\'' +
                "mapMode = '" + mapMode + '\'' +
                "mapSpinner = '" + mapSpinner + '\'' +
                "mapUrl = '" + mapUrl + '\'' +
                '}';
    }

    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getMapMode() {
        return mapMode;
    }

    public void setMapMode(int mapMode) {
        this.mapMode = mapMode;
    }

    public int getMapSpinner() {
        return mapSpinner;
    }

    public void setMapSpinner(int mapSpinner) {
        this.mapSpinner = mapSpinner;
    }

    public String getMapUrl() {
        return mapUrl;
    }

    public void setMapUrl(String mapUrl) {
        this.mapUrl = mapUrl;
    }
}
